//
//  ZyaTenderRecordCell.swift
//  ANOA
//
//  Created by 邱仙凯 on 2021/9/9.
//  Copyright © 2021 aowang. All rights reserved.
//

import UIKit
 
import Kingfisher
class ZyaTenderRecordCell: TenderBaseCell {
    
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        lab4.textColor = .lightGray
    }
 
    func makeConstrainsts() {
      
            dingwei.isHidden = true
            btn1.snp.makeConstraints { (make) in
                make.left.equalTo(lab1)
                make.width.equalTo(60)
                make.height.equalTo(25)
                make.top.equalTo(lab1)
            }
            lab1.snp.makeConstraints { (make) in
                make.left.equalTo(self.contentView).offset(11)
                make.right.equalTo(self.contentView).offset(-15)
                make.top.equalTo(self.contentView).offset(6)
            }
            
            
            lab2.snp.makeConstraints { (make) in
                make.left.right.equalTo(lab1)
                make.top.equalTo(lab1.snp.bottom).offset(6)
            }
            
      
            lab3.snp.makeConstraints { (make) in
                make.left.equalTo(lab1)
                 make.top.equalTo(lab2.snp.bottom).offset(6)
            }
            
            lab4.snp.makeConstraints { (make) in
                make.right.equalTo(self.contentView).offset(-10)
                 make.centerY.equalTo(lab3)
            }
      
        
        
        
    }
    
    
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    var one = ZtbContentModel(JSON:["":""])! {
        didSet {
            lab1.attributedText = NSAttributedString(string: "                \(one.zTbCompany.unwrap)", attributes: titleAttributes)
      
            lab2.text = "联系人:\(one.zName.unwrap)"
            lab3.text = "联系电话:\(one.zTel.unwrap)"
            lab4.text = one.zCreateTm
            btn1.setZBJPStatus(listType:.TB,auditmark: intTran(one.zAuditMark), status: intTran(one.zStatus),tbType: one.innerType!)

        }
    }
   
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}
